package com.ttsx.service;

import com.alipay.api.response.AlipayTradePagePayResponse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.ttsx.pojo.dto.payment.PaymentQueryDTO;
import com.ttsx.pojo.entity.Order;
import com.ttsx.pojo.entity.Payment;

/**
* @author lucky
* @description 针对表【ttsx_payment(支付表)】的数据库操作Service
* @createDate 2025-03-04 16:58:06
*/
public interface PaymentService extends IService<Payment> {

    PageInfo<Payment> getPage(Integer pIndex, Integer pSize, PaymentQueryDTO paymentQueryDTO);

    void updateStatus(String outTradeNo, String tradeNo);

    Payment getByOrderNo(String orderNo);

    AlipayTradePagePayResponse createPay(Order order, Integer payMethod);
}
